package com.wangp.mywrite.inwork.pattern._3._3_2_repeat;

import com.wangp.mywrite.inwork.pattern.InitData;

/***
 * @author wangpeng
 * @since 2022-03-01  11:42
 */
public class Repeat {

    public static void main(String[] args) {
        String reg = "1[0]+.*";
        // [10000, 10086, 10010]
        System.out.println(InitData.filterByRegexPattern(InitData.PHONE_LIST,reg));

        String regChinaUni = "1[0]{4}.*";
        // [10000]
        System.out.println(InitData.filterByRegexPattern(InitData.PHONE_LIST,regChinaUni));

        // {0,1} == ?
        // {1,} == +
        // {0,} ==
    }
}
